﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApp.Default.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Default/Test/

        public ActionResult Index()
        {
            //throw new ApplicationException("Testcontroller capture");
            return View();
        }

        public ActionResult Msg()
        {
            string s = string.Empty;
            for (int i = 0; i < this.Request.Headers.Count; i++)
			{
                var h = this.Request.Headers.GetKey(i);
			    var v = this.Request.Headers.GetValues(i);
                s = s + "<p/>"+h+":::"+string.Join("<p/>",v);
			}
            ViewBag.Agent = s;
            return View();
        }

    }
}
